<template>
  <div class="admin-dashboard">
    <div class="admin-header">
      <h1>👑 管理员面板</h1>
      <router-link to="/" class="btn btn-primary">返回用户界面</router-link>
    </div>
    
    <div class="admin-nav">
      <router-link to="/admin/users" class="nav-item">用户管理</router-link>
      <router-link to="/admin/stats" class="nav-item">统计数据</router-link>
      <router-link to="/admin/logs" class="nav-item">审计日志</router-link>
    </div>
    
    <router-view />
  </div>
</template>

<script setup>
</script>

<style scoped>
.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-item:hover,
.nav-item.router-link-active {
  background: var(--primary-color);
  color: white;
}
</style>


